export const itemConfig = [
    {
        type: 'input',
        label: '输入框',
        id: 'input',
        attributes: {
            hidden: false,
            label: '输入框',
            placeholder: '请输入内容',
            width: '',
            labelWidth: '',// 标签宽度
            labelPosition: '',// 标签对齐方式
            showLabel: true,
            disabled: false,
            inputType: '',
            showPassword: false,
            size: '',
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',//内容改变
            onMounted: ''//组件创建
        }
    },
    {
        type: 'inputNumber',
        label: '数字输入框',
        id: 'number',
        attributes: {
            hidden: false,
            label: '数字输入框',
            placeholder: '请输入数字',
            width: '',
            labelWidth: '',
            labelPosition: '',
            showLabel: true,
            disabled: false,
            precision: 0,//精度
            controlsPosition: 'right',//控制按钮位置
            min: 0,
            max: 100,
            step: 1,
            size: '',
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',//内容改变
            onMounted: ''//组件创建
        }
    },
    {
        type: 'select',
        label: '选择框',
        id: 'select',
        options: [{ label: '选项1', value: 1 }, { label: '选项2', value: 2 }, { label: '选项3', value: 3 }],
        dict: {
            useDict: false,
            url: '',
            labelKey: 'name',
            valueKey: 'value'
        },
        attributes: {
            hidden: false,
            label: '选择框',
            placeholder: '请选择',
            width: '',
            labelWidth: '',// 标签宽度
            labelPosition: '',// 标签对齐方式
            showLabel: true,
            disabled: false,
            size: '',
            multiple: true,
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',//内容改变
            onMounted: ''//组件创建
        }
    },
    {
        type: 'treeSelect',
        label: '树形选择',
        id: 'tree',
        options: [], // 静态数据（可选）
        dict: {
            useDict: false,
            url: '',
            labelKey: 'name',
            valueKey: 'value'
        },
        attributes: {
            hidden: false,
            label: '树形选择',
            placeholder: '请选择',
            width: '',
            labelWidth: '',
            labelPosition: '',
            showLabel: true,
            disabled: false,
            size: '',
            checkStrictly: true,// 选择任意节点
            multiple: true,
            showCheckbox: true,
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',
            onMounted: ''
        }
    },
    {
        type: 'radio',
        label: '单选框',
        id: 'radio',
        options: [{ label: '选项1', value: 1 }, { label: '选项2', value: 2 }, { label: '选项3', value: 3 }],
        dict: {
            useDict: false,
            url: '',
            labelKey: 'name',
            valueKey: 'value'
        },
        attributes: {
            hidden: false,
            label: '单选框',
            width: '',
            labelWidth: '',
            labelPosition: '',
            showLabel: true,
            disabled: false,
            size: '',
            isButton: false,
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',//内容改变
            onMounted: ''//组件创建
        }
    },
    {
        type: 'checkbox',
        label: '多选框',
        id: 'checkbox',
        options: [
            { label: '选项A', value: 1 },
            { label: '选项B', value: 2 },
            { label: '选项C', value: 3 }
        ],
        dict: {
            useDict: false,
            url: '',
            labelKey: 'name',
            valueKey: 'value'
        },
        attributes: {
            hidden: false,
            label: '多选框',
            width: '',
            labelWidth: '',
            labelPosition: '',
            showLabel: true,
            disabled: false,
            size: '',
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',//内容改变
            onMounted: ''//组件创建
        }
    },
    {
        type: 'switch',
        label: '开关',
        id: 'switch',
        attributes: {
            hidden: false,
            label: '开关',
            width: '',
            labelWidth: '',
            labelPosition: '',
            showLabel: true,
            disabled: false,
            activeText: '开',
            inactiveText: '关',
            activeValue: 1,
            inactiveValue: 0,
            size: '',
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',//内容改变
            onMounted: ''//组件创建
        }
    },
    {
        type: 'datePicker',
        label: '日期选择器',
        id: 'date',
        attributes: {
            hidden: false,
            label: '日期选择器',
            placeholder: '请选择日期',
            width: '',
            labelWidth: '',
            labelPosition: '',
            showLabel: true,
            disabled: false,
            format: 'YYYY-MM-DD', // 展示格式
            valueFormat: 'YYYY-MM-DD', // 绑定值格式
            dateType: 'date',
            size: '',
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',//内容改变
            onMounted: ''//组件创建
        }
    },
    {
        type: 'timePicker',
        label: '时间选择器',
        id: 'time',
        attributes: {
            hidden: false,
            label: '时间选择器',
            placeholder: '请选择时间',
            width: '',
            labelWidth: '',
            labelPosition: '',
            showLabel: true,
            disabled: false,
            isRange: false,
            valueFormat: 'HH:mm:ss',
            size: '',
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',//内容改变
            onMounted: ''//组件创建
        }
    },
    {
        type: 'dateTimePicker',
        label: '日期时间',
        id: 'dateTime',
        attributes: {
            hidden: false,
            label: '日期时间',
            placeholder: '请选择日期时间',
            width: '',
            labelWidth: '',
            labelPosition: '',
            showLabel: true,
            disabled: false,
            format: 'YYYY/MM/DD hh:mm:ss', // 展示格式
            valueFormat: 'YYYY-MM-DD hh:mm:ss', // 绑定值格式
            dateTimeType: 'datetime', //datetime/datetimerange
            size: '',
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',//内容改变
            onMounted: ''//组件创建
        }
    },
    {
        type: 'imageUpload',
        label: '图片上传',
        id: 'image',
        attributes: {
            hidden: false,
            label: '图片上传',
            labelWidth: '',
            labelPosition: '',
            showLabel: true,
            disabled: false,
            limit: 3,
            accept: 'image/*', // 仅支持图片
            listType: 'picture-card', // 显示样式
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',//内容改变
            onMounted: ''//组件创建
        }
    },
    {
        type: 'fileUpload',
        label: '文件上传',
        id: 'file',
        attributes: {
            hidden: false,
            label: '文件上传',
            labelWidth: '',
            labelPosition: '',
            showLabel: true,
            disabled: false,
            limit: 3,
            accept: '.pdf,.doc,.docx,.xls,.xlsx',
            listType: 'text',
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',//内容改变
            onMounted: ''//组件创建
        }
    },
    {
        type: 'rate',
        label: '评分',
        id: 'rate',
        attributes: {
            hidden: false,
            label: '评分',
            labelWidth: '',
            labelPosition: '',
            showLabel: true,
            disabled: false,
            max: 5, // 最大分值
            allowHalf: false, // 是否允许半星
            showScore: true, // 是否显示当前分数
            scoreTemplate: '{value}星', // 分数显示的模板
            size: '', // 尺寸，可选 large / default / small
            lowThreshold: 2,
            highThreshold: 4,
            voidColor: '#C6D1DE',
            disabledVoidColor: '#EFF2F7',
            iconClasses: ['el-icon-star-on'],
            voidIconClass: 'el-icon-star-off',
            disabledVoidIconClass: 'el-icon-star-on',
            cssClass: []
        },
        rules: [],
        events: {
            onChange: '',//内容改变
            onMounted: ''//组件创建
        }
    },
    {
        type: 'richText',
        label: '富文本',
        id: 'richText',
        attributes: {
            placeholder: '请输入内容',
            disabled: false,
            cssClass: []
        },
        rules: [],
        events: {
            onMounted: '',
            onChange: ''
        }
    }
];